﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Umbraco.Hive.ProviderGrouping;
using Umbraco.Hive.RepositoryTypes;

namespace WebGarden.Hive.Providers.Products.Entity
{
	/// <summary>
	/// From Matt Brailsford (Thanks Matt!):
	/// 
	/// This class kinda performs 2 tasks.
	/// 
	/// When you create a hive connection, Hive.CreateReader<IWordPressStore>() will firstly use the url defined in in the attribute as the root
	/// group url (should be mapped in the hive config)
	/// 
	/// And secondly
	/// 
	/// IEntityRepositoryGroup<IFileStore> gives you a typed entity repository store which you can define extention methods against
	/// and thus will only be available to that typed repository.
	/// 
	/// So you can create helper methods like GetPostByAuthor - which are only really relevant to Wordpress
	/// This stuff becomes more relevant when you start to query your data directly, i.e. not as content through Hive
	/// 
	/// </summary>
	[RepositoryType("products://")]
	public interface IProductsStore : IProviderTypeFilter
	{ }
}
